#include <stdio.h>
#include "cpt.h"

int main() {



    unsigned char multiSubEnDigitOut[255] = {0};
    printf("multiSubEnDigitOut:%s\n", multiSubEnDigitOut);

    Policy policy;
    NewPOLICY(&policy);

    SubPolicy subPolicy1;
    NewSUB_POLICY(&subPolicy1, 8, 4);

    SubPolicy subPolicy2;
    NewSUB_POLICY(&subPolicy2, 18, 3);

    addSUB_POLICY(&policy, &subPolicy1);
    addSUB_POLICY(&policy, &subPolicy2);

    unsigned char *inputstr = "foxmind_1234_text_139";
    test_policy_ct_encrypt(inputstr, &policy, multiSubEnDigitOut);
    printf("multiSubEnDigitOut:%s\n", multiSubEnDigitOut);

    return 0;


}
